﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Singer.Framework.CoreDI
{
    /// <summary>
    /// 服务注册的生命周期
    /// </summary>
    public enum LifeTimeType
    {
        /// <summary>
        /// 单例，一直是同一实例
        /// </summary>
        Singleton,
        /// <summary>
        /// 作用域，同一请求中是同一实例
        /// </summary>
        Scoped,
        /// <summary>
        /// 瞬时，每次获取的都是新实例
        /// </summary>
        Transient
    }
}
